import React, { Component } from 'react'
import './index.css'

export default class Item extends Component {
  render() {
    const { avatar_url, html_url, login } = this.props
    return (
      <div className="item-box">
        <a href={html_url} target="_blank" rel="noopener noreferrer">
          <img src={avatar_url} alt="图片" />
        </a>
        <p>{login}</p>
      </div>
    )
  }
}
